﻿using System;
using System.Collections.Generic;

namespace EasyUIMvc.Tree
{
    /// <summary>
    /// EasyUI Tree
    /// </summary>
    [Serializable]
    public class TreeNode
    {
        public TreeNode()
        {
            children = new List<TreeNode>();
            state = "closed";
        }
        public string Id { get; set; }
        // ReSharper disable once InconsistentNaming
        public string text { get; set; }
        // ReSharper disable once InconsistentNaming
        public string state { get; set; }
        // ReSharper disable once InconsistentNaming
        public string iconCls { get; set; }
        // ReSharper disable once InconsistentNaming
        public List<TreeNode> children { get; set; }
        // ReSharper disable once InconsistentNaming
        public object attributes { get; set; }
    }
}